using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityVipsCreateExtend
{
		public static Vips ToCreateEntity(this RequestVipsDto dto)
		{
			return new Vips
			{
				VId = dto.id,
				VName = dto.name,
				VCsId=dto.cid,
				VDescription = dto.description,
				VpColor = dto.color,
				VFoeverDiscount = dto.foeverDiscount,
				VLevel = dto.level,
			};
		}
	}
}
